﻿using System.Data.Entity;

namespace Jet.Dal.EF.Implementation.Contexts
{
	/// <summary>
	/// Context for 3 types of entities 
	/// </summary>
	internal class DbContext3<TEntity1, TEntity2, TEntity3> : DbContext2<TEntity1, TEntity2>
		where TEntity1 : class
		where TEntity2 : class
		where TEntity3 : class
	{
#pragma warning disable 0169
		// ReSharper disable UnusedMember.Local
		protected DbSet<TEntity3> DbSet3 { get; set; }
		// ReSharper restore UnusedMember.Local
#pragma warning restore 0169

		public DbContext3(string connectionString, bool lazyLoadingAllowed, bool allowProxyCreation)
			: base(connectionString, lazyLoadingAllowed, allowProxyCreation)
		{

		}

		static DbContext3()
		{
			Database.SetInitializer<DbContext3<TEntity1, TEntity2, TEntity3>>(null);
		}	
	}
}
